/*
 * @Author: 谢子健 1075010289@qq.com
 * @Date: 2024-07-28 10:18:25
 * @LastEditors: 谢子健 1075010289@qq.com
 * @LastEditTime: 2024-08-02 18:48:43
 * @FilePath: \zhilianilink\src\componets\shuju\ContentCard.scss
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
/* ContentCard.css */
.data-item {
    width: 46.0rem; /* 760px */
    height: 17.5rem; /* 280px */
    border-radius: 1.25rem; /* 20px */
    overflow: hidden;
    margin-bottom: 1.25rem; /* 20px */
    display: flex;
    flex-direction: column;
    cursor: pointer;
    background-color: #fff;
    padding: 0.625rem; /* 10px */
}

.card-top {
    display: flex;
    padding: 0.625rem; /* 10px */
}

.data-image {
    width: 9.375rem; /* 150px */
    height: 9.375rem; /* 150px */
    object-fit: cover;
    border-radius: 0.5rem; /* 8px */
    margin-right: 0.9375rem; /* 15px */
    margin-top: 1.25rem; /* 20px */
}

.data-details {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
}

.card-top-left {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.data-details h2 {
    margin-right: -0.9375rem; /* -15px */
    font-size: 1.25rem; /* 20px */
}

.favorites {
    flex-shrink: 0;
    padding: 0.1875rem 0.375rem; /* 3px 6px */
    margin-left: 0.625rem; /* 10px */
}

.tags {
    display: flex;
    gap: 0.625rem; /* 10px */
    margin: 0.625rem 0; /* 10px 0 */
}

.tag {
    background: #fff;
    color: black;
    border: 0.0625rem solid #ccc; /* 1px */
    border-radius: 0.25rem; /* 4px */
    padding: 0.25rem 0.3125rem; /* 4px 5px */
    font-size: 1rem; /* 16px */
}

.description {
    margin: 0;
    font-size: 1.125rem; /* 18px */
    color: #555;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* 限制文本行数为三行 */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  

.card-bottom {
    display: flex;
    justify-content: space-between;
    padding: 0.625rem; /* 10px */
    margin-bottom: 3.125rem; /* 50px */
}

.meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem; /* 10px */
    font-size: 0.7rem; /* 0.8em */
    color: #888;
}

.meta span {
    display: flex;
    align-items: center;
    gap: 0.3125rem; /* 5px */
    margin-right: 2.5rem; /* 40px */
}

.meta img {
    width: 1.5625rem; /* 25px */
    height: 1.5625rem; /* 25px */
}

.actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0.625rem; /* 10px */
    width: 100%;
}

.favorites {
    display: flex;
    align-items: center;
    font-size: 0.7875rem; /* 0.9em */
    color: #333;
    border: 0.0625rem solid #ddd; /* 1px */
    border-radius: 0.9375rem; /* 15px */
    padding: 0.1875rem 0.375rem; /* 3px 6px */
    margin-right: -0.3125rem; /* -5px */
}

.favorites img {
    width: 0.9375rem; /* 15px */
    height: 0.9375rem; /* 15px */
    margin-right: 0.125rem; /* 2px */
    margin-top: -10%;
    vertical-align: middle;
}

.detail-button {
    background-color: #e6f0ff;
    color: #2669f3;
    border: none;
    font-size: 1.125rem; /* 18px */
    padding: 0.625rem 1.25rem; /* 10px 20px */
    border-radius: 0.25rem; /* 4px */
    margin-left: auto;
}

.detail-button:hover {
    background-color: #3867ea;
    color: #fff;
}
